#include <stdio.h>
#include <ctype.h>
int compute_vowel_count(const char *sentence);
int main(void)
{
    int count = 0;
    printf("Enter a sentence: ");
    char str[100];
    printf("Your sentence contains %d vowels.\n", compute_vowel_count(fgets(str, 100, stdin)));
    return 0;
}
int compute_vowel_count(const char *sentence) {
    int count = 0;
    for (const char *p = sentence; *p; p++)
        if (toupper(*p) == 'A' || toupper(*p) == 'E' || toupper(*p) == 'I' || toupper(*p) == 'O' || toupper(*p) == 'U')
            count++;
    return count;
}
